<?php
namespace App\Models\Live;

use App\Models\TencentAPIModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class LiveGroupModel extends Model{
    use HasFactory;
    public static function sendGroupMsg($groupId,$msg){
        //发送群发积分派发群通知
        $client=new TencentAPIModel();
        $client->sendGroupMsg($groupId,json_encode($msg));
    }
    public static function getGroupOnlineUserCount($groupId){
        $client=new TencentAPIModel();
        return $client->getGroupOnlineUserCount($groupId);
    }
}